lcBlockSetPaperSize Home

Defines a paper size for a "Paper space" block.

 BOOL lcBlockSetPaperSize (
   HANDLE hBlock,
   int PaperSize,
   int Orient,
   double Width,
   double Height
 );

Parameters
hBlock
  Handle to a block object.
PaperSize
  Paper size for the layout. Can be one of the following values:

Value Paper size, mm.
LC_PAPER_A0 A0, 840 x 1189
LC_PAPER_A1 A1, 594 x 841
LC_PAPER_A2 A2, 420 x 594
LC_PAPER_A3 A3, 297 x 420
LC_PAPER_A4 A4, 210 x 297
LC_PAPER_A5 A5, 148 x 210
LC_PAPER_A6 A6, 105 x 148
LC_PAPER_B0 B0, 1000 x 1414
LC_PAPER_B1 B1, 707 x 1000
LC_PAPER_B2 B2, 500 x 707
LC_PAPER_B3 B3, 353 x 500
LC_PAPER_B4 B4, 250 x 353
LC_PAPER_B5 B5, 176 x 250
LC_PAPER_B6 B6, 125 x 176
LC_PAPER_C0 C0, 917 x 1297
LC_PAPER_C1 C1, 648 x 917
LC_PAPER_C2 C2, 458 x 648
LC_PAPER_C3 C3, 324 x 458
LC_PAPER_C4 C4, 229 x 324
LC_PAPER_C5 C5, 162 x 229
LC_PAPER_C6 C6, 114 x 162
LC_PAPER_ANSI_A ANSI A, 216 x 279 (8.5 x 11 in.)
LC_PAPER_ANSI_B ANSI B, 279 x 432 (11 x 17 in.)
LC_PAPER_ANSI_C ANSI C, 432 x 559 (17 x 22 in.)
LC_PAPER_ANSI_D ANSI D, 559 x 864 (22 x 34 in.)
LC_PAPER_ANSI_E ANSI E, 864 x 1118 (34 x 44 in.)
LC_PAPER_LETTER Letter, 216 x 279 (8.5 x 11 in.)
LC_PAPER_LEGAL Legal, 216 x 356 (8.5 x 14 in.)
LC_PAPER_EXECUTIVE Executive, 190 x 254 (7.5 x 10 in.)
LC_PAPER_LEDGER Ledger/Tabloid, 279 x 432 (11 x 17 in.)
LC_PAPER_CUSTOM Defined by Width and Height parameters

Orient
  Paper orientation, can be one of the following values:

Value Orientation
LC_PAPER_BOOK Paper height is bigger then width
LC_PAPER_ALBUM Paper width is bigger then height

Width
  Valid only if Size=LC_PAPER_USER. Specifies paper width, in millimeters.
Height
  Valid only if Size=LC_PAPER_USER. Specifies paper height, in millimeters.

Return Value

  If the function succeeds, the return value is nonzero (TRUE).